From: Keir Fraser Date: Fri, 18 Jun 2010 13:08:57 +0000 (+0100) Subject: ia64: Fix xc_save error reporting X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11907 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=20ad53b196b3a11969e6891f70647788a339605a;p=xen.git ia64: Fix xc_save error reporting This is the patch for error reporting on ia64 that has a special handling in comparison with i386/x86_64 platforms. This is pretty straight-forward just to fail on "cannot map mfn page" message instead of continue since the memory is not being correctly mapped using the xc_map_foreign_range() function. From: Michal Novotny Signed-off-by: Keir Fraser --- diff --git a/tools/libxc/ia64/xc_ia64_linux_save.c b/tools/libxc/ia64/xc_ia64_linux_save.c index aee0154e5f..24a1dbe3c8 100644 --- a/tools/libxc/ia64/xc_ia64_linux_save.c +++ b/tools/libxc/ia64/xc_ia64_linux_save.c @@ -647,7 +647,7 @@ xc_domain_save(xc_interface *xc_handle, int io_fd, uint32_t dom, uint32_t max_it fprintf(stderr, "cannot map mfn page %lx gpfn %lx: %s\n", xc_ia64_p2m_mfn(&p2m_table, N), N, safe_strerror(errno)); - continue; + goto out; } if (write_exact(io_fd, &N, sizeof(N))) {